package com.infore.siteManagement.OutSide.Service.Impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.infore.siteManagement.OutSide.Service.IDataAuditService;
import com.infore.siteManagement.constant.Constants;
import com.infore.siteManagement.entity.Project;
import com.infore.siteManagement.enums.ResultStatus;
import com.infore.siteManagement.repository.IndexRespository;
import com.infore.siteManagement.util.ResultEntity;

@Service
public class DataAuditServiceImpl implements IDataAuditService{

	@Autowired
	private IndexRespository indexRespository;
	
	public ResultEntity queryProjectByMn(List<String> mns) {
		List<Project> list = indexRespository.queryAllByMns(mns);
		return new ResultEntity(ResultStatus.SUCCESS,Constants.QUERY_SUCCESS).setDataList(list);
	}

}
